﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineMealOrdering.Common;
using OnlineMealOrdering.Domain.Base;

namespace OnlineMealOrdering.Areas.WebSiteManage.Models
{
    public class ModelBase
    {
        public static IDomainContext Ctx
        {
            get
            {
                if (DomainContext.Current == null)
                    throw EPSystemException.Create("当前OnlineStoreDbContext 为空");

                return DomainContext.Current;
            }
        }
    }
}